using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Linq;
using Nebulosa.Globalization.Install;
using Nebulosa.Data.Orm;


namespace Nebulosa.Models {
	public class DatabaseConfigModel : Model {
		[Required]
		//[Display(Name = Translate.DatabaseType)]
		[PrimaryKey(true)]
		public string DatabaseType { get; set; }
		
		[Required]
		//[Display(Name = Translate.DatabaseServer)]
		public string DatabaseServer { get; set; }
		
		[Required]
		//[Display(Name = Translate.DatabaseName)]
		public string DatabaseName { get; set; }
		
		//[Display(Name = Translate.DatabaseUser)]
		public string DatabaseUser { get; set; }
		
		[StringLength(100, MinimumLength = 4)]
		[DataType(DataType.Password)]
		//[Display(Name = Translate.DatabasePassword)]
		public string DatabasePassword { get; set; }
		
		//[Display(Name = Translate.IntegratedSecurity)]
		public bool? IntegratedSecurity { get; set; }
	}
}